package SLR;

import java.util.ArrayList;

public class Item {
    private ArrayList<String> item ;
    private int index;
    public Item(int index){
        this.index=index;
        item =new ArrayList<String>();
    }
    public void addG(String G)
    {
        item.add(G);
    }

    public int getIndex() {
        return index;
    }
    public void setIndex(int i){
        this.index=i;
    }
    public void setItem(ArrayList<String> i) {
        this.item=i;
    }

    public ArrayList<String> getItem() {
        return item;
    }

    public String toString(){
        return "I"+index+item.toString();
   }
}
